package test;

//引入 Scanner类
import java.util.Scanner;

public class T3 {
	public static void main(String[] args) {
		// 实例化scanner类
		Scanner sc = new Scanner(System.in);
		double a = sc.nextDouble();
		double b = sc.nextDouble();
		double c = sc.nextDouble();
		
		/* 普通  */
		double max;
		if (a>b&&a>c) {
			max = a;
		} if (b>a&&b>c) {
			max = b;
		} else {
			max = c;
		}
		System.out.println(max);
		
		/* 进阶  */
		System.out.println((a>b?a:b)>c?(a>b?a:b):c);
		
	}
}
